import request from '@/utils/request'

//车辆维修接口

/**
 * /admin/carcz//apply.do
 * private Integer type;
	private Float price;
	private String fileurl1;
	private String filename1;
	private Integer status;
	private String reason;Integer shrid, Integer carid,
 * 申请车辆维修
 * type 0 维修，1保养，2 维修保养，status不要，shrid,选择的审批人id, carid,选择的车辆id
 */
export function apply(data) {
  return request({
    url: '/admin/weixiu/apply.do',
    method: 'post',
    data
  })
}
/**
 * 申请车辆维修列表
 */
export function listJson(data) {
  return request({
    url: '/admin/weixiu/listJson.do',
    method: 'post',
    data
  })
}
/**
 * /admin/weixiu//sprListJson.do?tableId=
 * 获取审批人列表，tableId在申请的时候不需要填
 */
export function sprListJson(data) {
  return request({
    url: '/admin/weixiu/sprListJson.do',
    method: 'post',
    data
  })
}
